package com.cn.file;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by chenyuncong on 2019/6/26.
 */
public class FileTest {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        for(int i=0;i<10;i++){
            list.add(i);
        }

        int[] num = {0};
        System.out.println(num[0]);
        list.forEach(i->{
            System.out.println(i);
            System.out.println(num[0]);
            num[0]++;
        });

//        File file =new File("D:\\data\\0120190624144621_B.mp4");
//        if (file.exists() && file.isFile()){
//            System.out.println(file.length());
//        }
        //7924242
        //7924242
    }
}
